package xin.mashibo.pattern.adapter;

/**
 * 类适配器模式中：适配器角色
 * 通过类继承来实现，继承“现有需求”来实现“实际需求”
 *
 * @author MaShibo on 2018/4/3
 */
public class PrintBanner extends Banner implements Print {

    public PrintBanner(String string) {
        super(string);
    }

    @Override
    public void printWeak() {
        showWithParen();
    }

    @Override
    public void printString() {
        showWithAster();
    }
}
